package tmall.portal;

import com.google.common.reflect.ClassPath;
import jodd.io.PathUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import tmall.portal.spring.A;
import tmall.portal.spring.TestBeanFactoryPostProcessor;


//@SpringBootApplication(scanBasePackages ={"tmall"} )
//@MapperScan({"tmall.portal.mapper","tmall.framework.mapper"})
//@EnableEurekaClient
public class SpringAdminStart {
    public static void main(String[] args) {
       // SpringApplication.run(SpringAdminStart.class);
        ApplicationContext context = new ClassPathXmlApplicationContext("test.xml");
        A a = context.getBean(A.class);
        a.say();
       // AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(A.class);
     }
}
